// Kernel.cpp: implementation of the operation system class.
//
//////////////////////////////////////////////////////////////////////
#include "Kernel.h"
//////////////////////////////////////////////////////////////////////
//

// CAutoLock::CAutoLock -----------------------------------------------------------------------
CAutoLock::CAutoLock(CRITICAL_SECTION* lock)
: m_c(lock)
{
	::EnterCriticalSection(m_c);
}
// CAutoLock::~CAutoLock -----------------------------------------------------------------------
CAutoLock::~CAutoLock()
{
	::LeaveCriticalSection(m_c);
}
